using System.Configuration;

namespace Rioshu.Web.ViewStateHandlers
{
    public class SqlPersisterConfigurationHandler : OutOfPagePersisterConfigurationHandler
    {
        [ConfigurationProperty("connectionStringName", IsRequired = true)]
        public string ConnectionStringName
        {
            get { return this["connectionStringName"].ToString(); }
        }

        public static SqlPersisterConfigurationHandler GetConfiguration()
        {
            return ConfigurationManager.GetSection("viewStateHandlers/sqlPersister") as SqlPersisterConfigurationHandler;
        }
    }
}